import { instance,houseDataUrl } from "../utils/request";

export const getAudit = (query) => {
    return instance({
        url: '/shipKeyInarea/audit/list',
        method: 'get',
        params: query
    })
}
export const getLine = (query) => {
    return instance({
        url: '/shipKeyInarea/list',
        method: 'get',
        params: query
    })
}
// 新建线上检查
export const addLine = (data) => {
    return instance({
        url: '/check/online/add',
        method: 'post',
        data: data
    })
}
// 查询污染物接收
export const getPoll = (shipId) => {
    return instance({
        url: `/pollutantDeliveryProcessManagement/receive/${shipId}`,
        method: 'get',
    })
}
// 查询审批
export const getApproval = (query) => {
    return instance({
        url: '/shipKeyInarea/approval/list',
        method: 'get',
        params: query
    })
}
// 船E /threeShip/getEntRecevieData

export const getRecevie = (id) => {
    return houseDataUrl({
        url: '/api/chData/shipInfo/getWpmRecordList?shipId='+id,
        method: 'get',
    })
}
// 审核
export const getInarea = (data) => {
    return instance({
        url: '/shipKeyInarea/audit/update',
        method: 'post',
        data: data
    })
}
// 审批
export const getRoval = (data) => {
    return instance({
        url: '/shipKeyInarea/approval/update',
        method: 'post',
        data: data
    })
}